package com.itheima.ydd.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

/**
 *
 * @TableName ydd_user
 */
@TableName(value ="ydd_user")
@Data
public class YddUser implements Serializable {
    /**
     * 用户ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 手机号
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 0是男，1是女
     */
    @TableField(value = "sex")
    private String sex;

    /**
     * 密码
     */
    @TableField(value = "password", select = false)
    private String password;

    /**
     * 用户头像
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 个性描述
     */
    @TableField(value = "notes")
    private String notes;

    /**
     * 出生年月
     */
    @TableField(value = "birthday")
    private String birthday;

    /**
     * 现居住地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 是否为默认数据，null表示不是，1表示是
     */
    @TableField(value = "default_data")
    @JsonProperty(value = "default_data")
    @TableLogic(value = "1",delval = "0")
    private String defaultData;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
